package com.sky.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

@Data
public class EmployeeDTO implements Serializable {

    private Long id;

//    @NotBlank
    private String username;

    private String name;

//    @NotBlank(message = "手机号不能为空")
//    @Pattern(regexp = "^1[0-9]{10}$", message = "手机号必须是11位数字")
    private String phone;

    private String sex;
//
//    @NotBlank(message = "身份证号不能为空")
//    @Pattern(regexp = "^[1-9]\\d{16}[0-9Xx]$", message = "身份证号必须是18位数字或X结尾")
    private String idNumber;

}
